<include file="Public/header"/>
<body style="background:#f5f5f5;">

<include file="Public/menu"/>




<div id="tbh5v0">
	<!--------筛选 form 表单 开始-------------->
		<div class="order ajax_return">
        <if condition="empty($lists)">
        <section id="cart-content">
      <div class="qb_tac" style="padding:50px 0">
        <img src="__STATIC__/images/flow/empty_cart.png" width="170" >
        <br>您暂无预约信息</div>
      <div class="qb_gap" style="width:60%; margin:0 auto;">
        <a href="{:U('Goods/categoryList')}" class="mod_btn btn_strong"><i class="icon iconfont icon-paobu fontbao"></i>去商城逛逛</a>
      </div>
</section>
        </if>
			<volist name="lists" id="list">
				<div class="yy_list">
					<h2>
						<span>预约编号:<b>{$list.yy_id}</b></span>
					</h2>
                    <div class="clear"></div>
                    
                    <div class="yy_information">
                        <if condition="$list[coach][images] neq ''">
                       	 <div class="yy_img"><img src="{$list[coach][images]}"></div>
                        <else />
                       	 <div class="yy_img"><img src="{$list[coach][user_id]|get_user_head}"></div>
                        </if>
                        
                        <div class="yy_listinformation">
                        	<!--课程名称：<b>XXX</b><br >-->
                            预约时间：{$list.yy_date}/{$list.time_str}<br >
                            训练类目：{$list[coach][cate_id]|get_coach_cate_name}<br >
                            教练名称：{$list.coach_id|get_coach_name}<br >
                            教练电话：{$list.coach_id|get_coach_phone}
                       <if condition="$list[qx_auth] eq 1" >
                           <div>
                               <a class="button" onClick="cancel_yy({$list.id});" style="background:#4fd568; color:#fff; padding:3px 10px; margin-left:5px; border-radius:5px; margin-top:10px;">取消预约</a>
                           </div>

                        </if>
                        </div>

                     


                    <div class="clear"></div>
                    </div>
				</div>
			</volist>

		</div>
</div>
<script>
    function cancel_yy(id){
        if(!confirm('确定要取消吗?'))
            return false;

        location.href = "/index.php?m=Mobile&c=Yuyue&a=cancel_yy&id="+id;

    }
</script>


<include file="Public/footer_nav"/>

</body>
</html>